#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>

#include "Data.h"

// ------------------------------------------------------------ //
// --------------------- 头像 + 名字 组合控件 ------------------- //
// ------------------------------------------------------------ //

using namespace model;

class AvatarItem : public QWidget
{
    Q_OBJECT
public:
    AvatarItem(const QIcon& avatar, const QString& name);

    QPushButton* getAvatar()
    {
        return avatarBtn;
    }

private:
    QPushButton* avatarBtn;
    QLabel* nameLabel;
};

class SessionDetailWidget : public QWidget
{
    Q_OBJECT
public:
    SessionDetailWidget(QWidget* parent, const UserInfo& userinfo);

    void clickedDelFriendBtn();

private:
    QPushButton* delFriendBtn;
    UserInfo userinfo;
};

#endif // SESSIONDETAILWIDGET_H
